From b7c984f217992330896a3017794067d3e3284cd7 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 25 Sep 2008 17:41:29 +0100 Subject: [PATCH] x86, hvm: Remove warning on emulated write to read-only page. The bugs in this area seem to have been fixed now, and gPXE makes legitimate best-effort attempts to modify its embedded static data. Signed-off-by: Keir Fraser --- xen/arch/x86/hvm/hvm.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index 1f08e7a54a..5d9428ca39 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -1504,15 +1504,7 @@ static enum hvm_copy_result __hvm_copy( if ( flags & HVMCOPY_to_guest ) { - if ( p2mt == p2m_ram_ro ) - { - static unsigned long lastpage; - if ( xchg(&lastpage, gfn) != gfn ) - gdprintk(XENLOG_DEBUG, "guest attempted write to read-only" - " memory page. gfn=%#lx, mfn=%#lx\n", - gfn, mfn); - } - else + if ( p2mt != p2m_ram_ro ) { memcpy(p, buf, count); paging_mark_dirty(curr->domain, mfn); -- 2.30.2